﻿using System;
using System.Threading;

namespace Observer
{
    class DigitObserver : IObserver
    {

        #region IObserver メンバ

        public void Update(NumberGenerator generator)
        {
            Console.WriteLine("DigitObserver:" + generator.GetNumber());
            try
            {
                Thread.Sleep(100);
            }
            catch
            {
            }
        }

        #endregion
    }
}
